package com.matt.service.cookbook;

import com.matt.commons.dto.sso.StaffDTO;
import com.matt.commons.page.PagerQuery;
import com.matt.domain.simpleCookbook.SimpleCookbook;
import org.springframework.data.domain.Page;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.Date;

;

public interface SimpleCookbookService {

	SimpleCookbook get(StaffDTO staff, String id);

	SimpleCookbook add(StaffDTO staff, String title, String content, MultipartFile image, Date beginAt, Date endAt) throws IOException;

	void deleteSimpleCookbook(StaffDTO staff, String id);

	Page<SimpleCookbook> page(String areaId, PagerQuery pagerQuery);
}